PlacesSidebar: Unref cloud_manager in dispose()
authorDaniel Boles <dboles@src.gnome.org>
Tue, 12 Sep 2017 21:15:27 +0000 (22:15 +0100)
committerDaniel Boles <dboles@src.gnome.org>
Mon, 18 Sep 2017 22:30:57 +0000 (23:30 +0100)
We ref the CloudProviders singleton in init() but did not unref it in
dispose(). Do so, using g_clear_object().

https://bugzilla.gnome.org/show_bug.cgi?id=787600

gtk/gtkplacessidebar.c

index ff11d65b5a0fc3e629c03383e33f6251b39f7cc5..9b6a2c72cead6352e53ad3582c5acfa61a3eda34 100644 (file)
@@ -4271,6 +4271,10 @@ gtk_places_sidebar_dispose (GObject *object)
   g_slist_free_full (sidebar->shortcuts, g_object_unref);
   sidebar->shortcuts = NULL;
 
+#ifdef HAVE_CLOUDPROVIDERS
+  g_clear_object (&sidebar->cloud_manager);
+#endif
+
   G_OBJECT_CLASS (gtk_places_sidebar_parent_class)->dispose (object);
 }